package com.javasm.mb_store_api_final.giftsandgoods.goodsBrand.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.javasm.mb_store_api_final.giftsandgoods.goodsBrand.entity.GgBrand;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 商品管理-品牌管理(GgBrand)表数据库访问层
 *
 * @author makejava
 * @since 2024-07-30 10:40:09
 */
public interface GgBrandDao extends BaseMapper<GgBrand> {
    @Select("SELECT * from gg_goodstype_brand typeBrand,gg_brand brand WHERE typeBrand.brand_id=brand.id AND typeBrand.gtype_id=100101")
    List<GgBrand> getByTypeId(String typeId);
}

